//
//  main.m
//  OC多文件开发
//
//  Created by 郭志远 on 2023/11/28.
//

#import <Foundation/Foundation.h>
#import "Shop.h"
#import "Soldier.h"
int main(int argc, const char * argv[]) {
    
    Soldier *sp = [Soldier new];
    sp->_name = @"asas";
    sp->_height = 12.2;
    sp->_weight = 21.2;
    
    Gun *gp = [Shop buyGun:100];
    Clip *c = [Shop buyClip:10];
    
    [sp fire:gp clip:c];
    
    return 0;
}
